package com.kqb.mapper;

import com.kqb.common.curd.IBaseMapper;
import com.kqb.pojo.Customer;
import com.kqb.pojo.User;
import com.kqb.pojo.dto.CustomerDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
public interface CustomerMapper extends IBaseMapper<Customer> {

    /**
     * 查询客户
     * @param customer
     * @return
     */
    List<Customer> query(Customer customer);

    int restore(CustomerDTO customerDTO);

    Map<String,Object> queryById(int id);

    List<Map<String,Object>> selectSimple(@Param("id") Integer id);

}